home *** CD-ROM | disk | FTP | other *** search
- on MouseClick
- global gNumSpr, g1erSprLoc, gBoutons, gSurvolPrec, gScopeSu, gPosVideo, gPosDebP, gPosDebS, gPosDebE, gPosFin
- curseur(6)
- if word 1 of the name of cast the castNum of sprite gNumSpr = "BTPBOU" then
- sound close 1
- gScopeSu(SetCadence, 1)
- gBoutons(habille, gNumSpr, "BTPPOS 1")
- else
- gScopeSu(SetCadence, 0)
- gBoutons(habille, gNumSpr, "BTPBOU 1")
- end if
- set gSurvolPrec to -1
- end
-
- on mouseDown
- global gNumSpr, g1erSprLoc, gBoutons
- set gNumSpr to g1erSprLoc + 11
- gBoutons(appuie, gNumSpr)
- end
-
- on mouseUp
- global gNumSpr, g1erSprLoc, gSurvolPrec
- curseur(6)
- set monNumSpr to g1erSprLoc + 11
- if monNumSpr = gNumSpr then
- MouseClick()
- else
- pass()
- end if
- curseur(-1)
- end
-